package com.parktech.sun.domain.model.industryservice;

import com.parktech.sun.domain.model.specialtopic.SpecialTopic;

import javax.persistence.*;

/**
 * User: Think
 * Date: 11-1-12
 * Time: 下午10:41
 */
@Entity
public class IndustryServiceInformationAttachment {

    private Long id;

    private String name;

    private IndustryServiceInformation information;

    public IndustryServiceInformationAttachment() {
    }

    public IndustryServiceInformationAttachment(String name, IndustryServiceInformation information) {
        this.information = information;
        this.name = name;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @ManyToOne
    public IndustryServiceInformation getInformation() {
        return information;
    }

    public void setInformation(IndustryServiceInformation information) {
        this.information = information;
    }
}
